import { NTag } from 'naive-ui'

export default function renderStatus(status: number) {
  switch (status) {
    case 0:
      return (
        <NTag
          type="error"
          bordered={false}
        >
          禁用
        </NTag>
      )
    case 1:
      return (
        <NTag
          type="success"
          bordered={false}
        >
          正常
        </NTag>
      )

    default:
      return null
  }
}
